home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / ubiquity / apt-setup / finish-install < prev   
Text File  |  2008-10-29  |  354b  |  10 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. # Disable CD image in sources.list if any other sources are present
  5. if ([ -e /cdrom/.disk/base_installable ] || [ "$OVERRIDE_BASE_INSTALLABLE" ]) && \
  6.    grep -q "^deb \(ht\|f\)tp" /target/etc/apt/sources.list; then
  7.     logger -t finish-install "Disabling CD in sources.list"
  8.     sed -i "/^deb cdrom:/s/^/#/" /target/etc/apt/sources.list
  9. fi
  10.